import request from '../utils/request'

// 获取未删除的用户数据
export function getList() {
    return request({
        url: '/outSerConsume',
        params: {
            // 后台过滤
            isdelete: 0
        }
    })
}

// 导入
export function addTableData(Obj) {
    return request({
        url: '/outSerConsume',
        method: 'post',
        data: Obj
    })
}
// 导出列表
export function deletes(id) {
    return request({
        url: `/outSerConsume/${id}`,
        method: 'patch',
        data: {
            isdelete: 1
        }
    })
}
export function patch(id, obj) {
    return request({
        url: `/outSerConsume/${id}`,
        method: 'patch',
        data: obj


    })
}

// 删除用户
export function delUserData(id) {
    return request({
        url: `/outSerConsume/${id}`,
        method: 'delete',

    })
}
